improved order of leaving loop
progress on finding files