adding end of chapter