started writing circular buffer