cleanup before some culling