move renderVisitor into utils folder