clean some codes in quad visitor