Changing resources to resource