moved redundancy code into parallel section