modified:   simulator/Simulate.cs