made migration profile dependent.