made  global in several places