removed division by zero