code style changes in circ buffer