cleanup sample code