refining the time setting procedure