replace with layout_buffer