cleanup in sample