made necessary changes to factories.rb