modified ga code