sum of commed types