changes to lec 6: