adding execute method for gateway