modify return array in order to download the right file