iadded compare, finished openmp