added gosquared analysis code