iid case working (hopefully)