resolve LOGICAL_AND