tentative clock code added