The invention provides a method comprising providing a composition comprising a pH trigger and a polymer able to be hydrated in a defined pH zone injecting the composition with a pH outside the defined pH zone triggering the pH trigger to adjust the pH of the composition within the defined pH zone and allowing viscosity of the composition to increase and form a plug.