Typos corrected

refactoring.