advcd: more corner cases