migrate units