tweak lecture 15 slightly