implemented & parallelized statistics