removed test in thread definition