update static sample code

update static sample code