removed unneeded method in traversal visitor