pulled out SSCgen in partial form