fix typo: didn't rename all variables