add method to get total size and total downloaded size