divide files migration functons.