add sample for publisher