making the calendar work