delete extra if in WorkWithCalendar