end output buffer