#5 complete download functionality