add set index method
update indexing