categorize entity by types