coursedata into a array