add a clock function