add checkpoint.