cleaning up buffer Notices