added parameterized threading for the order processing