corrected the data processing