changes in the clock method