added toDigit props