update data and initial processing