refactoring method call