had the position matrix multiplication in the wrong order