gateway structuring