changed GA code