merge the resources