debug for calendar