typos after refactor