cleaning tm2 files