use migrate to set the element