buffer size var added