clean up tag formatting