cut buf