CQ code in CQ boundaries