return buffer