fix to compile teaching stuff