basic iterator works