modify tag method