sum and hw sw