use component/indexof