sum pertype edit