added simulations of gates