added clock and time functions