updated: continuous downloading function