bug fix, previous courses were not tallied properly