extracted method during refactor