a trivial refactoring