added index of result if in array