changes for adding checkpoint check