cleaning for migration