fix catA vs. catB in chap3