refactor events to series