correctly deals with overdue tasks