attempted to fix problems with the D control loop