changed matrix to only use 4x4