final version of place_orders