update subject hierarchy