Changed coeff to d in match_paren