change domain of gates