auto update index of objects