giving touch event in for loop

I have 40 images and all are touch enabled.At a time only one image will get event and specified action follows.I have inserted these images to CCArray and creating bounding box to these images in the end phase of the touch event using a for loop but only first image is taking event.I really dont know the reason.Some help will be useful.
for(int j=0;j<40;j++)
{
if(dynamic_cast<CCSprite*>(image_array~~>objectAtIndex)~~>boundingBox().containsPoint(location))
{
printf(“success”);
//break;
}
}
It is printing success only if the first image is touched.

are you updating the CCPoint location with every touch ?