add file globals where define common function