removed debug lines from gates.