added support for more than one digit