have generator return the truth values also