fixed the equations