update the ruler