b1760, added cookie to helper function