added indexOf to array