update version and sample code