adding Weights in prox
fixing the merging problems