generator now works for case where there is only one execution path per item