removing old code
new scheme of migration and selection part 1