replaced index with search