pieces index search works