working on time util functions