added calculate to update order