solve OR problems