removed unnecessary threads