modify lecture 8