seeding code that works