replace hard-coded edition type with dynamic attribute