preparation to ds.clear