different way of checking sums