some backup code of calendar app