The present invention provides a method of using a solid-layered composition having at least two parts. The first past comprises a) calcium hypochlorite, magnesium hypochlorite and mixtures thereof, b) a builder, c) a water-soluble polymer, d) an acid, and e) wherein the first part does not contain sodium hypochlorite, lithium hypochlorite, potassium hypochlorite and mixtures thereof. The second part comprises a) a surfactant b) a builder, c) an acid, and d) wherein the second part does not contain any oxidant.