working on the calendar functions