moved GA code up a bit