fix typo in variable, remove debug echos