remove const bufferSize