wip
wip
added parallel version of for_each