fix integral area, and parallelized.