defining gate