Cleaned up symbolVisitor