added get time functionality