cleaned up writer_goroutine.go