cleanup before