refactored, successfully runs monthly calendar