- fixed sample code