added indexOf method