refactor for chapter setting related