changes for merchant query