use contain instead of indexOf