change search to index