matching single gates with sweep