returned lua code