first working version of factor saving of gensgd