Woops, item_number declaration wrong place

needed to be outside of while(1)