fixed ep calculation.