optimized the thread-creation transfer fun.