add GATEWAY code