removed redundant DoPutBuffer call