deal with 9 and 999