added delete hidden buffers function