update resource.go to match