adapting queries.txt file