refactoring of eom method