prepare for migrate data