reconfigured the processLimitOrder() function