changed finder function to loop over captured data