made autoreleasepool for each loop.