debugged division by zero