split the processing loops to an openmp one and an openmp free, due to crappy windows compiler error