remove potential division by zero