Need to reverse the order of the iteration