added an type to get id from a tag