removing the redundant residuetype mass code