added parallel array fun