added lowest index search and highest index search