clone the buf