added accepts_nested_attributes_for :segments