change structure for resources