use indexof component

for microsoft sucks