get rid of indexOf