added global vars