new version with order creation