made a global version