merge resource