Changed the print visitor to inode visitor