removed incorrect function for resource.