add shell gate
add matter input to gates