working clock implemented