refactor seeding