improved parallel class