changed variable name to denom