one revision of a condition from a recent commit, as suggested by Linas, and a commented-out alg that didn't work