adding course download function