some tweaks on lecture 4-2