parallel only for inside loop