actually added multiway/bit gates