added bytes_to_transfer