add to downloads function