update checkpoints.cpp