added EO_MIN() and EO_MAX()