[IMP]write improved migration