fixed wrong mass and charge return value