removing throws
adding MatrixTransform to reduce numerical problems with large numbers (double precision).