implemented clock