trying to refactor event and eventlist