trying to test isaacs code, found a bug in mine