update checkpoint.