see places where we can make use of treadpool to reduce the runtime and to make the application more efficient.