revert indexOf, as it is first occurrence