changed call to the resource_name