FOR_ALL_BUFFERS use locally declared buffer pointer