working parallelization. reduces file I/O.