refactor series