constructor for clock
more ttt fixes