all retwis functions