update lecture based on class