sample cleanup