fix_for_reverse_order_with_functions