adds tagging functionality