add function for closing empty buffers