fix Eout equation