working on adding com for rmsd