refactored seeder