halfway to write the simulationresult