controlled-gates 4