finish clock functionality