replaced name option with query option in search