add leggauss_imp