add the function of tags.