handles double digit numbers