updated changeMass with cleaner min/maxMass from master