corrected arithmetic with None