modify GA code