processData split into sub programs