removed getDistinctTags() function