bug in digit order