removed divide by zero error