reset the buffer value to 0