update the lecture header and generalize it