shouldn't the arguments be `digits, base`?