un optimized post order generator