changed distance * speed to distance / @speed