errors fixe up to chap4