get rid of global