rewrote deBuffer