put each files into thread