add function in continue visit