teent tiny refactoring, for fun