adding checkpoint