minor refactoring of visit method signature