recoding twl script