moving pinv to geomjac