added indexOf to see if current field is K or not