cleanup raw data