probably bad style to alter the buffer here