making download more efficient