simplify buffer goroutine