changed a bit of tradeorder logic