finally removed download file and inserted the only function in use into index.js