checkpointing for brandon to work on