refactor seed process