using promise to get course information