getting search working