use sqrt(speed) instead of speed