fixed typos in comments due to refactoring