merge out process prims