sample code fix