migration code update