replacing GA code