added polarity switch in GOC initialization