added function globally