tiny refactoring to reproduce duplication