fixed your boolean issue but didn't test
also removed unused imports @ deleteCourse