lec12 updated