mapping buffers example working ok