prepare clock for ticking