remove tags on publish function