renamed speed to time, since that's what it actually is