added ssm_reg and ssm_poly