update from sample code