running a single and gate works