The invention refers to a pharmaceutical or nutraceutical composition, comprising a) a core, comprising a pharmaceutical or a nutraceutical active ingredient, b) an inner coating layer comprising one or more salts of alginic acid and c) an outer coating layer comprising one or more water-insoluble polymers or copolymers and one or more water-soluble polymers, selected from the group of water soluble celluloses, polyvinyl pyrrolidones or polyethylene glycols or any combinations thereof. wherein the ratio by weight of the amount of the one or more salts of alginic acid in the inner coating layer to the amount of the one or more water-insoluble polymers or copolymers in outer coating layer is from 0.6 to less than 2.5 : 1.