add buffer mapping