deleted another unused function def get_resource