transform into process array based