Rewrite twm