changes to parallel version