document attempt at more efficient version that did not work
update test