worked on ruler problem