adding check for total mismatch