move code to chapter instead of section