caters for nums up to 10