fixes typos from last commit
minor: refactoring