change CreateAndRunThread