tiny refactoring