fixing errors in file paths and query names script two and three