add time functionality