adds missing global declaration