functioning version w/ "Unknown" category handing