change tag table structure