fixed edge case where 81*(first m digits) was being skipped and  wasn't being counted correctly