added encoding.go