simplify index and search