remove static declarations of global variables