actually added fixed matrix 3d and 4d