add snippet for data provider function