removed global G from file