more efficient tagging using hashmap of exact match