with the gate at least partly formed in a trench