added categorial labels based on type attribute