adding total check