add clock_in and clock_out method