how to avoid gypsum formation