cleaned up grab_courses