modified testGary