removed possible divide by zero condition