cleanup sample codes