clean up public methods of maskBuffer
x