sums not adding up correctly