updated api to enforce AND operator