add mac buffer condition