change gate data