adding in print out of queries which retrieved the page