function corrected on seed.js