update the square pagation