add thread simple code