fixed ZeroDivision bug & changed output text to include the current variable