Reordering ret statement