before all indexes will be changed to [0, n) from [1,N]