fixing bug in raw data