corrected logic of youtube downloading