small optimizations
typo