speed now is treated as float