more mods to lec 8 and 10