modified migrate