checkpoint for query