update gateway example