switch mapping for buffers