sample code update