replacing calendar with library