changed enum to const static in visitor return flags