added checkDeadlines