changed timestep to a TimeSpan variable