replace gateway varible