created spawn-thread