add scale and rate function to extract scale and rate parameters