defines cleanup