change the resources struct