reverting index to what it should be