forgot to flush output buffer