add route for number

add route for number / optimises the code