solving pb with search bar