working search and index