multi thread to 1 thread