getting categories and elements works