categories and danny's map_reduce