made searching data work