added totalAmount to the order