keep reverse index in a right way