modify to insert multiple orders