prim output
mergeee