fixed redundant loop in clock.rb file