add visitor to dp