calendar working properly