or 1 to prevent divide by zero