refactored to proper course/section variable scheme