Rotation of ruler working fine