matrix 적용.