update CA (minor refactoring + Parallel.For)