fixed global declaration