refactors Clock