added missing visitor.end()
added missing visitor.begin and visitor.end , even if there is nothing to visit