building checkpoint logic
building checkpoint logic