add constant number limit and make more clear messagge error

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>