made a function for tagging keys