Chao: work on the latter half of section 6