moving ga code to head