modified EW_ABC class, and also the codes for the EWPO accordingly.