implemented basic clock