chnge in loc of dwnlod function