added a Refactor comment and corrected a typo.