before change data structure