changing how <category> element is parsed