deleted the gate stuff