parameterize max promotion