Adjusting indices of migrations