minor adjustments on how to use the queries