fix obsolete course function