added but have not tested iid likelihood calculations