tiny refactorization