parallelize FD loops