refactoring: inline implementation