set proper time