remove dependency on lpack