checkpoint for middle threads