replicate the patch from #1; all 3 tests pass