added sanity check for mass matches