used unvisitAll() method