fix a few code climate smells