correct buffer sizes