changed the queries