some cleanup to notebook