added download percentage function