tool prints nodes visited