ensure correct time