modify the rule of the square