bug fix with simulation modifying rawdata