modified calendar-mode