set a new index