fixed malformed eqns