fix typo
fix typo
unify the differences (currently duplicated code, but that's the next commit
extract out as top level function
use extracted function to get rid of duplication