refactor seed.rb