changes to all query