added pnl, still have bugs though