fixing GA code