fixed all of the equations in the CAD