using the parameterized gateway id