turning matrix