added global declaration