prevent duplicated courses