modified EWSM.cpp.