added some iteration stuff