change the way query works