gateway: initialise variables in the declaration order