check root query before fill