ch 8: small fixes