use contains instead of indexOf