added acceleration and clamp to zero