could you please move this to the compute_resource.js file?