dry up totals checking
change Number() to parseInt()