more robust propensity function creation for StochSS