fix equations for good