check if we need a larger buffer