fixing ga code