added checks for parallel region