time functionality - work in progress