corrected bug input data position instead of speed