struct code in Control.g