changed index to search