delete redundant vars in visitor keep the code clear

The threadPool has to be done for multi-unrolling

The when statement is waiting