adding new function for tags