sample4 add files and iterator