divide by zero error fixed