clean up writing notes