moved GA code