update water, permutation