update samples, use new interface