cleanup the sample code