change indexOf to contains