clock functioning