refactor code. update seeder.js