in other words you can make a commutative diagram $$\newcommand{\ra}[1]{\kern-1.5ex\xrightarrow{\ \ #1\ \ }\phantom{}\kern-1.5ex}
\newcommand{\ras}[1]{\kern-1.5ex\xrightarrow{\ \ \smash{#1}\ \ }\phantom{}\kern-1.5ex}
\newcommand{\da}[1]{\bigg\downarrow\raise.5ex\rlap{\scriptstyle#1}}
\begin{array}{c}
S & \ra{\beta} & T \\
\da{\mathcal{G}} & & \da{\mathcal{G}} \\
\mathcal{G}[S] & \ras{\mathcal{G}[\beta]} & \mathcal{G}[T] \\
\end{array}$$ (where $\beta$ is the bijection)