modified ARMSCGen