fixed a typo and removed debug cout from clock