refactor resource data variable name