implementing time setting