sum total smaller than 0 was presented as negative instead of 0 which is what it should be in this case