move get_latest_courses to correct file