set instance_index