better processing for AND