adding call to write_attribute on association_id