finishing the processData script