smalle changes to iid.