1.change variable name; 2.fixed division by zero