fixed equil code.