First mirgration step