update buffer sizes