switch query file to position parameter