move to the right place
update index