added file to modify, and do improved parallel version