added rescore query