update code calendar