apply Trotate

may have mistakes, check later