intermediate: cleanup