time functions updated