adding weighted rmsd