refactoring of MultiThreadProcessing class