fixing buffer size