remove code about thread