prevent wrong solution from f(x)*g(x) = 0 technique