add thread, though it is not working