Reordered ga code