made body(resource) work properly