Removed (var index) and put index in reverse_each to make it more readable