primitive parallel functions