make getMigrationData private
swap order of if cases