implemented download and delete