handle the Integer and iterator