fixed some methods in Trader.java