minor changes to lect 3