added iter method to go over chunks of data