transfer size refactoring