formatting and note cleanup