refactoring to wrapped method