simplify quad check