removed divide by zero possibility