using global var for names