added condition for time entry