changed chapter construct function