publish data and sample code