Revert each_with_index