refactor event class