adds prism to each query, fixes query2 problem