small inline method refactoring