added chapter stuff