use sizeof to determine the size of a buffer