improved item_nr validation