use fmt.Sprintf instead of bytes.Buffer