updated download code