adding checkpoints