optimizations
checkpoint