taken out the common part for signifdigit