add a function to get mass for residue type