change the $orders during the API format