added global declarations