use static scheduling and remove unnecessary omp_get_thread_num