fixed clock logic i think