add indexOf method