added buffer size to output