get categories as list