fix data processing