minor private methods refactoring